import request from '@/utils/request'

export function page (parameter) {
  return request({
    url: '/notice/page',
    method: 'post',
    data: parameter
  })
}

export function edit (parameter) {
  return request({
    url: '/notice',
    method: 'put',
    data: parameter
  })
}

export function deleteAll (ids) {
  return request({
    url: '/notice',
    method: 'delete',
    data: ids
  })
}

export function findNotice (id) {
  return request({
    url: '/notice/' + id,
    method: 'get',
  })
}